package com.atde._04_structural_design_patterns.decorator;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.decorator
 * @Author: Del
 * @CreateTime: 2025-06-20  15:15
 * @Description: 装饰者模式 --- 具体的装饰器 --- 巧克力
 * @Version: 1.0
 */
public class Chocolate extends Decorator{
    public Chocolate(Drink obj) {
        super(obj);
        setDes(" 巧克力 ");
        // 当前 巧克力 3元
        setPrice(3.0f);
    }
}
